package com.ys.entity.business;

import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.util.Date;

@Table(name="TP_FbaBox", catalog="guid")
public class TpFbaBox extends BaseEntity<TpFbaBox> {
    @YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
    private String guid; // 主键ID
    @YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
    private String bid; // 单号
    @YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
    private Date createTime; // 开始日期
    @YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
    private Date updateTime; // 生效日期

    public String getGuid() {
        return guid;
    }
    public TpFbaBox setGuid(String guid) {
        this.guid = guid;
        return this;
    }
    public String getBid() {
        return bid;
    }
    public TpFbaBox setBid(String bid) {
        this.bid = bid;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public TpFbaBox setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public TpFbaBox setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }


    public static TpFbaBox tpFbaBox(
            String guid,
            String bid,
            Date createTime,
            Date updateTime
    ) {
        TpFbaBox entity = new TpFbaBox();
        entity.setGuid(guid);
        entity.setBid(bid);
        entity.setCreateTime(createTime);
        entity.setUpdateTime(updateTime);
        return entity;
    }
}
